package com.coocaa.cirrus.common.base.util;

import lombok.experimental.UtilityClass;
import org.apache.commons.lang3.StringUtils;
import org.jsoup.Jsoup;
import org.jsoup.safety.Safelist;

/**
 * @author bijiahao
 * @date : 2025/7/15 14:24
 * @description
 */
@UtilityClass
public class HtmlUtil {
    public static String removeHtmlTagsWithJsoup(String html) {
        if (StringUtils.isBlank(html)) {
            return "";
        }
        return Jsoup.clean(html, Safelist.none());
    }

}
